var extFingers = [];
var extMaxFingers = 5;
var extMinFingerSize = 40;
var extMaxFingerSize = 100;

for(var extI=0;extI<extMaxFingers;extI++)
{
	extFingers[extI] = document.createElement('div');
	extFingers[extI].id = 'extFinger'+extI;
	extFingers[extI].className = 'extFingerStyle';
	document.body.appendChild(extFingers[extI]);
}

document.addEventListener('touchmove',function(e){
	
	for(var extI=0;extI<e.touches.length;extI++)
	{
		var extTouch = e.touches[extI];
		extFingers[extI].style.top = extTouch.pageY + 'px';
		extFingers[extI].style.left = extTouch.pageX + 'px';
		extFingers[extI].style.minWidth = extFingers[extI].style.minHeight = extMinFingerSize + ( extTouch.webkitForce * extMaxFingerSize ) + 'px';
		extFingers[extI].style.display = 'block';
	}
	for(var extI=extMaxFingers;extI>e.touches.length;extI--)
	{
		extFingers[extI-1].style.display = 'none';
	}
});

document.addEventListener('touchend',function(e){
	
	for(var extI=0;extI<extMaxFingers;extI++)
	{
		extFingers[extI].style.display = 'none';
	}
});